package com.baidu.springcloud.service;

import com.baidu.springcloud.bean.Payment;
import com.baidu.springcloud.common.CommonResult;
import org.springframework.stereotype.Component;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-04-04 17:42
 */
@Component
public class PatmentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> payment(Long id) {
        return new CommonResult<>(444, "兜底方法处理open feign异常", new Payment(id, "error"));
    }
}
